const Router=require('koa-router');
//把控制程序抽取出来放在controls文件中
const UserController=require('../controls/user.js')
// const router=new Router({
//   prefix:'/api'
// });
const router=new Router();
router.get('/api/user',UserController.getUserInfo);
//获取用户列表
router.get('/api/getUserList',UserController.getUserList);
//创建用户
router.post('/api/createUser',UserController.create)


module.exports=router;
